package com.basic.library.brvah;

import android.view.View;

import com.basic.library.utils.ButtonUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;

/**
 * @author yj
 * @description 解决列表item重复点击
 */
public abstract class MOnItemChildClickListener implements BaseQuickAdapter.OnItemChildClickListener {

    @Override
    public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
        if (!ButtonUtils.isFastDoubleClick(view.hashCode()))
            onItemChildClickDiff(adapter, view, position);
    }

    public abstract void onItemChildClickDiff(BaseQuickAdapter adapter, View view, int position);
}
